home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_098 / hddriver / driver / subprocess.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  381b  |  21 lines

  1.  
  2. #include "hd.h"
  3.  
  4.  
  5. /* note that must not allocate any signals here as they may conflict */
  6. /* with signals for the interrupt handler or for the message port which */
  7. /* allocated the signals in a different task (naughty arnt I!) */
  8.  
  9. void
  10. subprocess ()
  11. {
  12.     struct Message *msg;
  13.  
  14.     while ( 1 ) {
  15.         while ( msg = GetMsg ( port ) ) {
  16.             perform_io ( msg );
  17.         }
  18.         WaitPort ( port );
  19.     }
  20. }
  21.